package com.pony.iphone.utils.ding.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author pony
 * 钉钉ActionCard对象，用于发送ActionCard类型消息
 */
@Data
// lombok 专门生成链式调用的注解，设置 chain = true 后，setter 方法返回当前对象（this），允许连续调用多个 setter 方法
@Accessors(chain = true)
public class DingTalkActionCard {
    private String title;
    private String text;
    private String singleTitle;
    private String singleURL;
    private String btnOrientation;
    private List<Button> btns;
    
    @Data
    @Accessors(chain = true)
    public static class Button {
        private String title;
        private String actionURL;
    }
}